﻿using B.S.Medical.Domain.Department;
using B.S.Medical.Domain.Doctor;
using B.S.Medical.Domain.Medical;
using B.S.Medical.Domain.Payment;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.Medical.Infrastructure
{
    /// <summary>
    /// 数据库上下文
    /// </summary>
    public class MyDbContext : DbContext
    {
        public MyDbContext(DbContextOptions options) : base(options)
        {
        }
        public DbSet<ManageModel> ManageModel { get; set;}
        public DbSet<LogModel> LogModel { get; set; }
        public DbSet<AppointmentNoticeModel> AppointmentNoticeModel { get; set; }
        public DbSet<CampusModel> CampusModel { get; set; }
        public DbSet<DoctorModel> DoctorModel { get; set; }
        public DbSet<JobTitleModel> JobTitleModel { get; set; }
        public DbSet<LabelModel> LabelModel { get; set; }
        public DbSet<DoctorScheduleModel> DoctorScheduleModel { get; set;}
        public DbSet<PatientModel> PatientModel { get; set; }
        public DbSet<RegisterModel> RegisterModel { get; set;}

        /// <summary>
        /// 问诊单实体
        /// </summary>
        public DbSet<ConsultationModel> ConsultationModel { get; set; }

        //新增实体
        //号源表
        public DbSet<registrationModel> registrationModels { get; set; }

        //患者余额表
        public DbSet<PatientBalance> patientBalances { get; set; }



        public DbSet<DoctorLabelModel> DoctorLabelModel { get; set; }



        /// <summary>
        /// 药品实体Model
        /// </summary>
        public DbSet<DrugModel> DrugModel { get; set; }
        /// <summary>
        /// 支付实体Model
        /// </summary>
        public DbSet<PaymentRecordModel> PaymentRecordModel { get; set; }
        /// <summary>
        /// 缴费明细实体
        /// </summary>
        public DbSet<RegisterDetailModel> RegisterDetailModel { get; set; }

    }
}
